package com.gzy.blog.blog.dao;

import com.gzy.blog.blog.entity.Blog;
import com.gzy.blog.common.PageModel;

public interface BlogDao {

	public void addBlog(Blog blog);

	public void delete(Blog blog);

	public void update(Blog blog);

	public Blog get(Integer id);

	public PageModel<Blog> listBlogWithUser(int pageNo, int pageSize);

	public Blog getBlogByUserId(Integer userId);

	public Blog getBlogByArticleId(Integer id);

	public Blog getBlogById(Integer id);

	public PageModel<Blog> listBlogPage(int pageNo, int pageSize);

}
